<?php
$this->breadcrumbs=array(
//	'Coffee Recommends'=>array('index'),
	'Register a Café'
);
$openingHours=DataUtil::getOpeningHoursOptions();
?>

<h1>Register a Café</h1>

<div class="rc_main"><?php if(Yii::app()->user->hasFlash('coffeeRecommend')){ ?>

<div class="flash-success"><?php echo Yii::app()->user->getFlash('coffeeRecommend'); ?>
</div>

<?php } ?>

<div class="form ">
<p>This is to nominate a cafe that is <em>NOT</em> in our listing only.</p>
<p>Please have a look at our <?php echo CHtml::link('hotshot listing',array('coffeeShop/listAll'))?>
 before you nominate. If the cafe is already in our listing, just vote it
away!</p>
<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'coffee recommend-form',
	'enableAjaxValidation'=>false,
)); ?>

<p class="note">Fields with <span class="required">*</span> are
required.</p>

<?php echo $form->errorSummary($model); ?>

<div class="row"><?php echo $form->labelEx($model,'name'); ?> <?php echo $form->textField($model,'name',array('size'=>60,'maxlength'=>255)); ?>
<?php echo $form->error($model,'name'); ?></div>

<div class="row"><?php echo $form->labelEx($model,'ownerName'); ?> <?php echo $form->textField($model,'ownerName',array('size'=>60,'maxlength'=>255)); ?>
<?php echo $form->error($model,'ownerName'); ?></div>

<div class="row"><?php echo $form->labelEx($model,'street'); ?> <?php echo $form->textField($model,'street',array('size'=>60,'maxlength'=>255)); ?>
<?php echo $form->error($model,'street'); ?></div>

<div class="row"><?php echo $form->labelEx($model,'suburb'); ?> <?php echo $form->textField($model,'suburb',array('size'=>32,'maxlength'=>32)); ?>
<?php echo $form->error($model,'suburb'); ?></div>

<div class="row"><?php echo $form->labelEx($model,'city'); ?> <?php echo $form->textField($model,'city',array('size'=>32,'maxlength'=>32)); ?>
<?php echo $form->error($model,'city'); ?></div>

<div class="row"><?php echo $form->labelEx($model,'state'); ?> <?php echo $form->textField($model,'state',array('size'=>32,'maxlength'=>32)); ?>
<?php echo $form->error($model,'state'); ?></div>

<div class="row"><?php echo $form->labelEx($model,'postcode'); ?> <?php echo $form->textField($model,'postcode',array('size'=>32,'maxlength'=>32)); ?>
<?php echo $form->error($model,'postcode'); ?></div>

<div class="row"><?php echo $form->labelEx($model,'country'); ?> <?php echo $form->textField($model,'country',array('size'=>32,'maxlength'=>32)); ?>
<?php echo $form->error($model,'country'); ?></div>

<div class="row"><?php echo $form->labelEx($model,'website'); ?> <?php echo $form->textField($model,'website',array('size'=>60,'maxlength'=>255)); ?>
<?php echo $form->error($model,'website'); ?></div>

<div class="row"><?php echo $form->labelEx($model,'phone'); ?> <?php echo $form->textField($model,'phone',array('size'=>32,'maxlength'=>32)); ?>
<?php echo $form->error($model,'phone'); ?></div>

<div class="row"><label>Café Email <span class="required">*</span></label> <?php echo $form->textField($model,'email',array('size'=>32,'maxlength'=>255)); ?><br />
<em>(Please take a mo to grab their email, so we can let them know they are kicking goals).
<br /></em>
<?php echo $form->error($model,'email'); ?></div>

<div class="row"><?php echo $form->labelEx($model,'baristaNames'); ?> <?php echo $form->textField($model,'baristaNames',array('size'=>32,'maxlength'=>32)); ?>
<?php echo $form->error($model,'baristaNames'); ?></div>

<div class="row"><?php echo $form->labelEx($model,'espressoMachine'); ?>
<?php echo $form->textField($model,'espressoMachine',array('size'=>32,'maxlength'=>32)); ?>
<?php echo $form->error($model,'espressoMachine'); ?></div>

<div class="row"><?php echo $form->labelEx($model,'beansForSale'); ?> <?php echo $form->checkBox($model,'beansForSale'); ?>
<?php echo $form->error($model,'beansForSale'); ?></div>

<div class="row"><?php echo $form->labelEx($model,'internetAccess'); ?>
<?php echo $form->checkBox($model,'internetAccess'); ?> <?php echo $form->error($model,'internetAccess'); ?>
</div>

<div class="row"><?php echo $form->labelEx($model,'roastingOnSite'); ?>
<?php echo $form->checkBox($model,'roastingOnSite'); ?> <?php echo $form->error($model,'roastingOnSite'); ?>
</div>

	<div class="row">
		<?php echo $form->labelEx($model,'wifi'); ?>
		<?php echo $form->checkBox($model,'wifi'); ?>
		<?php echo $form->error($model,'wifi'); ?>
	</div>
	
	<div class="row">
		<?php echo $form->labelEx($model,'goodForBusiness'); ?>
		<?php echo $form->checkBox($model,'goodForBusiness'); ?>
		<?php echo $form->error($model,'goodForBusiness'); ?>
	</div>

<div class="row"><?php echo $form->labelEx($model,'coffeeBrand'); ?> <?php echo $form->textField($model,'coffeeBrand',array('size'=>32,'maxlength'=>32)); ?>
<?php echo $form->error($model,'coffeeBrand'); ?></div>

	<div class="row">
		<?php echo $form->labelEx($model,'day1Start'); ?>
		<?php echo $form->dropDownList($model,'day1Start',$openingHours,array('empty'=>'Please Select...')); ?>
		<?php echo $form->error($model,'day1Start'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'day1End'); ?>
		<?php echo $form->dropDownList($model,'day1End',$openingHours,array('empty'=>'Please Select...')); ?>
		<?php echo $form->error($model,'day1End'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'day2Start'); ?>
		<?php echo $form->dropDownList($model,'day2Start',$openingHours,array('empty'=>'Please Select...')); ?>
		<?php echo $form->error($model,'day2Start'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'day2End'); ?>
		<?php echo $form->dropDownList($model,'day2End',$openingHours,array('empty'=>'Please Select...')); ?>
		<?php echo $form->error($model,'day2End'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'day3Start'); ?>
		<?php echo $form->dropDownList($model,'day3Start',$openingHours,array('empty'=>'Please Select...')); ?>
		<?php echo $form->error($model,'day3Start'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'day3End'); ?>
		<?php echo $form->dropDownList($model,'day3End',$openingHours,array('empty'=>'Please Select...')); ?>
		<?php echo $form->error($model,'day3End'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'day4Start'); ?>
		<?php echo $form->dropDownList($model,'day4Start',$openingHours,array('empty'=>'Please Select...')); ?>
		<?php echo $form->error($model,'day4Start'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'day4End'); ?>
		<?php echo $form->dropDownList($model,'day4End',$openingHours,array('empty'=>'Please Select...')); ?>
		<?php echo $form->error($model,'day4End'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'day5Start'); ?>
		<?php echo $form->dropDownList($model,'day5Start',$openingHours,array('empty'=>'Please Select...')); ?>
		<?php echo $form->error($model,'day5Start'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'day5End'); ?>
		<?php echo $form->dropDownList($model,'day5End',$openingHours,array('empty'=>'Please Select...')); ?>
		<?php echo $form->error($model,'day5End'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'day6Start'); ?>
		<?php echo $form->dropDownList($model,'day6Start',$openingHours,array('empty'=>'Please Select...')); ?>
		<?php echo $form->error($model,'day6Start'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'day6End'); ?>
		<?php echo $form->dropDownList($model,'day6End',$openingHours,array('empty'=>'Please Select...')); ?>
		<?php echo $form->error($model,'day6End'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'day7Start'); ?>
		<?php echo $form->dropDownList($model,'day7Start',$openingHours,array('empty'=>'Please Select...')); ?>
		<?php echo $form->error($model,'day7Start'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'day7End'); ?>
		<?php echo $form->dropDownList($model,'day7End',$openingHours,array('empty'=>'Please Select...')); ?>
		<?php echo $form->error($model,'day7End'); ?>
	</div>

<div class="row"><?php echo $form->labelEx($model,'comment'); ?> <?php echo $form->textArea($model,'comment',array('rows'=>6, 'cols'=>50)); ?>
<?php echo $form->error($model,'comment'); ?></div>

<div class="row buttons"><?php echo CHtml::submitButton('Recommend'); ?>
</div>

<?php $this->endWidget(); ?></div>
<!-- form --></div>
